﻿Imports System.Data
Imports System.Data.OleDb
Imports DAO
Imports DTO
Public Class LichTuyenBus
    Shared daoLichTuyen As New LichTuyenLapDao
    Shared daoLichTuyenKhongLap As New LichTuyenKhongLapDao

    Public Shared Function LayDanhSachLichTuyen() As DataTable
        Return daoLichTuyen.LayDanhSachLichTuyenLap()
    End Function
    Public Shared Function LayDanhSachLichTuyenLapThu() As DataTable
        Return daoLichTuyen.LayDanhSachLichTuyenLapThu()
    End Function

    Public Shared Function ThemThoiDiemKhoiHanh(ByVal thoiDiem As LichTuyenDto) As Integer
        Return daoLichTuyen.ThemThoiDiemKhoiHanh(thoiDiem)
    End Function

    Public Shared Function CapNhatThoiDiemKhoiHanh(ByRef data As DataTable) As Integer
        Return daoLichTuyen.CapNhatThoiDiemKhoiHanh(data)
    End Function

    Public Shared Function CapNhatThuLap(ByVal data As DataRow) As Integer
        Return daoLichTuyen.CapNhatThuLap(data)
    End Function
    Public Shared Function XoaThoiDiemKhoiHanh(ByVal data As DataRow) As Integer
        Return daoLichTuyen.XoaThoiDiemKhoiHanh(data)
    End Function
    Public Shared Function LayDanhSachLichTuyenKhongLap() As DataTable
        Return daoLichTuyenKhongLap.LayDanhSachLichTuyenKhongLap()
    End Function
    Public Shared Function LayDanhSachLichTuyenKhongLapThoiDiem() As DataTable
        Return daoLichTuyenKhongLap.LayDanhSachLichTuyenKhongLapThoiDiem()
    End Function

    Public Shared Function ThemThoiDiemKhoiHanh(ByVal thoiDiem As LichTuyenKhongLapDto) As Integer
        Return daoLichTuyenKhongLap.ThemThoiDiemKhoiHanh(thoiDiem)
    End Function

    Public Shared Function CapNhatThoiDiemKhoiHanhKhongLap(ByRef data As DataTable) As Integer
        Return daoLichTuyenKhongLap.CapNhatThoiDiemKhoiHanh(data)
    End Function
End Class
